package com.complex.spring.advance.aop.proxyfactorybean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.complex.spring.advance.aop.base.ITask;

/**
 * 实际注入的是代理对象
 * @author gao
 *
 */
public class BeanNameAutoProxyCreatorTest {

	public static void main(String[] args) {
		ApplicationContext text = new ClassPathXmlApplicationContext("aop/spring-aop-auto.xml");
		ITask task = (ITask)text.getBean("mockTask");
		task.execute();
		
		task = (ITask)text.getBean("fakeTask");
		task.execute();
	}

}
